export function questionSort(question) {
  if (question && question.questionDetailList) {
    question.questionDetailList = question.questionDetailList.sort(function(a, b) {
      return a.no - b.no
    })
    const len = question.questionDetailList.length
    for (let idx = 0; idx < len; idx++) {
      if (question.questionDetailList[idx].questionDetailItemList) {
        question.questionDetailList[idx].questionDetailItemList = question.questionDetailList[idx].questionDetailItemList.sort(function(a, b) {
          return a.indexOrder - b.indexOrder
        })
      }
    }
  }
}
